<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="../templates/ui.xhtml">

	<ui:define name="content">
		<h1 class="title ui-widget-header ui-corner-all">Calendar - Date Ranges</h1>
		<div class="entry">
			<p>Selectable dates can be restricted using mindate and maxdate options.</p>
			
			<p:calendar value="#{calendarBean.date1}" mindate="1/1/12" maxdate="5/31/12" mode="inline"/>	
		
			<h3>Source</h3>
			<p:tabView>
				<p:tab title="calendarMinMax.xhtml">
					<pre name="code" class="xml">
&lt;p:calendar value="#{calendarBean.date1}" mindate="1/1/12" maxdate="5/31/12" mode="inline"/&gt;
					</pre>
				</p:tab>
				
				<p:tab title="CalendarBean.java">
					<pre name="code" class="java">
package org.primefaces.examples.view;

import java.util.Date;

public class CalendarBean {

	private Date date1;
	
	public Date getDate1() {
		return date1;
	}

	public void setDate1(Date date1) {
		this.date1 = date1;
	}
}
					</pre>
				</p:tab>
			</p:tabView>
			
         </div>
        
	</ui:define>
</ui:composition>
